package com.degloba.billing;

import com.paypal.api.payments.CreditCard;

public interface IBillingService {

	/**   
	 * Attempts to charge the order to the credit card. Both successful and   
	 * failed transactions will be recorded.   
	 *    
	 * @return a receipt of the transaction. If the charge was successful, the   
	 *      receipt will be successful. Otherwise, the receipt will contain a   
	 *      decline note describing why the charge failed.   
	 */  
	Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);
}
